@maintainer-pro/ai-server 0.1.4 → 0.1.5
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/README.md +2 -2
- package/bin/cli.js +7 -2
- package/package.json +7 -3
- package/src/server.mjs +718 -522
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ It is **not** what you ship as the production website. Without this process, `lo
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx --yes @maintainer-pro/ai-server@latest
|
|
14
|
+
npx --yes --prefer-online @maintainer-pro/ai-server@latest
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Put a `.env` in the current directory (from the admin setup guide or by hand). CLI flags override env.
|
|
@@ -47,7 +47,7 @@ A copied `ai-ui.iife.js` in the UI folder is served first and will not update wh
|
|
|
47
47
|
| `AI_SERVER_PRODUCT_DESCRIPTION` | Optional product text for the agent prompt |
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
npx --yes @maintainer-pro/ai-server@latest --port 3100 --ui . --workspace .
|
|
50
|
+
npx --yes --prefer-online @maintainer-pro/ai-server@latest --port 3100 --ui . --workspace .
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## Related packages
|
package/bin/cli.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* npx --yes @maintainer-pro/ai-server@latest
|
|
3
|
+
* npx --yes --prefer-online @maintainer-pro/ai-server@latest
|
|
4
4
|
*/
|
|
5
|
-
import "../src/server.mjs";
|
|
5
|
+
import { runCli } from "../src/server.mjs";
|
|
6
|
+
|
|
7
|
+
runCli().catch((err) => {
|
|
8
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
9
|
+
process.exit(1);
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maintainer-pro/ai-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Node HTTP server for Maintainer Pro chat. Uses @maintainer-pro/ai-cli to talk to coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maintainer-pro",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"type": "module",
|
|
16
|
+
"main": "./src/server.mjs",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": "./src/server.mjs"
|
|
19
|
+
},
|
|
16
20
|
"bin": {
|
|
17
21
|
"ai-server": "bin/cli.js",
|
|
18
22
|
"maintainer-pro-ai-server": "bin/cli.js"
|
|
@@ -26,8 +30,8 @@
|
|
|
26
30
|
"access": "public"
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"@maintainer-pro/ai-cli": "^0.1.
|
|
30
|
-
"@maintainer-pro/ai-ui": "^0.2.
|
|
33
|
+
"@maintainer-pro/ai-cli": "^0.1.6",
|
|
34
|
+
"@maintainer-pro/ai-ui": "^0.2.5",
|
|
31
35
|
"ws": "^8.21.3"
|
|
32
36
|
},
|
|
33
37
|
"engines": {
|