@maintainer-pro/ai-bridge 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/README.md +8 -1
- package/package.json +4 -1
- package/src/daemon.mjs +1649 -112
package/README.md
CHANGED
|
@@ -14,7 +14,14 @@ npx --yes @maintainer-pro/ai-bridge --pair AB12-CD34 --admin-url https://your-ad
|
|
|
14
14
|
Credentials are stored in `~/.maintainer-pro/bridge.json` (not the cwd).
|
|
15
15
|
|
|
16
16
|
3. Keep the bridge running (`npx @maintainer-pro/ai-bridge`). It advertises the current folder (and any `--offer-folder` paths).
|
|
17
|
-
4. In admin → Bridges: pick a reported folder + client sandbox → **Setup sandbox in folder**.
|
|
17
|
+
4. In admin → Bridges: pick a reported folder + client sandbox → **Setup sandbox in folder**.
|
|
18
|
+
|
|
19
|
+
For **empty / new** folders the bridge:
|
|
20
|
+
- Writes `.env` (server + client keys)
|
|
21
|
+
- Scaffolds `index.html` with the chat widget (served by `ai-server`)
|
|
22
|
+
- Starts `ai-server` and marks the sandbox Online
|
|
23
|
+
|
|
24
|
+
For **existing** apps it injects the widget / Next env when possible. Use **Client setup** on the Bridges form for manual overrides (`empty`, `existing`, or keys-only).
|
|
18
25
|
|
|
19
26
|
One bridge process can run many sandboxes (different folders / ports) for different clients.
|
|
20
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maintainer-pro/ai-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local bridge daemon that pairs a machine to Maintainer Pro and configures multiple client sandboxes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maintainer-pro",
|
|
@@ -26,5 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=22"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@maintainer-pro/ai-cli": "^0.1.4"
|
|
29
32
|
}
|
|
30
33
|
}
|