archicore 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/utils/config.js +2 -2
- package/dist/server/index.js +8 -5
- package/package.json +4 -1
package/dist/cli/utils/config.js
CHANGED
|
@@ -7,10 +7,10 @@ import { join } from 'path';
|
|
|
7
7
|
const CONFIG_DIR = join(homedir(), '.archicore');
|
|
8
8
|
const CONFIG_FILE = join(CONFIG_DIR, 'config.json');
|
|
9
9
|
const DEFAULT_CONFIG = {
|
|
10
|
-
serverUrl: 'http://
|
|
10
|
+
serverUrl: 'http://194.156.66.251:3000',
|
|
11
11
|
colorOutput: true,
|
|
12
12
|
verboseOutput: false,
|
|
13
|
-
qdrantUrl: 'http://
|
|
13
|
+
qdrantUrl: 'http://194.156.66.251:6333',
|
|
14
14
|
};
|
|
15
15
|
let cachedConfig = null;
|
|
16
16
|
export async function loadConfig() {
|
package/dist/server/index.js
CHANGED
|
@@ -97,10 +97,12 @@ export class ArchiCoreServer {
|
|
|
97
97
|
async start() {
|
|
98
98
|
return new Promise((resolve) => {
|
|
99
99
|
this.server = createServer(this.app);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Logger.
|
|
100
|
+
const host = this.config.host || '0.0.0.0';
|
|
101
|
+
this.server.listen(this.config.port, host, () => {
|
|
102
|
+
const displayHost = host === '0.0.0.0' ? 'localhost' : host;
|
|
103
|
+
Logger.success(`ArchiCore server running at http://${displayHost}:${this.config.port}`);
|
|
104
|
+
Logger.info(`API available at http://${displayHost}:${this.config.port}/api`);
|
|
105
|
+
Logger.info(`Dashboard at http://${displayHost}:${this.config.port}`);
|
|
104
106
|
resolve();
|
|
105
107
|
});
|
|
106
108
|
});
|
|
@@ -126,7 +128,8 @@ export class ArchiCoreServer {
|
|
|
126
128
|
const isMainModule = process.argv[1]?.includes('server');
|
|
127
129
|
if (isMainModule) {
|
|
128
130
|
const port = parseInt(process.env.PORT || '3000', 10);
|
|
129
|
-
const
|
|
131
|
+
const host = process.env.HOST || '0.0.0.0';
|
|
132
|
+
const server = new ArchiCoreServer({ port, host });
|
|
130
133
|
server.start().catch((err) => {
|
|
131
134
|
Logger.error('Failed to start server:', err);
|
|
132
135
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archicore",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI Software Architect - code analysis, impact prediction, semantic search",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"README.md",
|
|
14
14
|
"LICENSE"
|
|
15
15
|
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18.0.0"
|
|
18
|
+
},
|
|
16
19
|
"scripts": {
|
|
17
20
|
"build": "tsc",
|
|
18
21
|
"dev": "tsx watch src/index.ts",
|