bostrat-node 0.0.1 → 0.2.0
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/LICENSE.md +18 -0
- package/README.md +37 -0
- package/bin/bostrat-git-credential +46 -0
- package/bin/bostrat-mock +118 -0
- package/bin/bostrat-node.js +12 -0
- package/bin/bostrat-runbook +126 -0
- package/bin/bostrat-ticket +137 -0
- package/bin/bostrat-view +96 -0
- package/bin/gh +51 -0
- package/dist/cli.js +162 -0
- package/dist/index.js +265 -0
- package/node-entrypoint.sh +21 -0
- package/package.json +19 -5
- package/cli.js +0 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# bostrat node boot: first-boot volume layout, then hand off to the CLI.
|
|
3
|
+
# Everything under $HOME sits on the Fly volume (see node.Dockerfile).
|
|
4
|
+
set -e
|
|
5
|
+
mkdir -p "$HOME/repos"
|
|
6
|
+
# Boxes commit as they work; give git an identity on first boot only — the
|
|
7
|
+
# operator can overwrite it (it persists in $HOME/.gitconfig on the volume).
|
|
8
|
+
git config --global user.name >/dev/null 2>&1 || git config --global user.name "bostrat node"
|
|
9
|
+
git config --global user.email >/dev/null 2>&1 || git config --global user.email "node@bostrat.ai"
|
|
10
|
+
# The agent drives boxes on a host tmux server (the Pi's globo-tmux.service
|
|
11
|
+
# equivalent): keep one alive with a detached keeper session.
|
|
12
|
+
SOCKET="${BOSTRAT_TMUX_SOCKET:-/tmp/tmux-0/default}"
|
|
13
|
+
mkdir -p "$(dirname "$SOCKET")"
|
|
14
|
+
tmux -S "$SOCKET" has-session 2>/dev/null || tmux -S "$SOCKET" new-session -d -s keeper "sleep infinity"
|
|
15
|
+
# Global-install layout (the GHCR image / npm -g) has bostrat-node on PATH;
|
|
16
|
+
# staged repo-context builds (`bostrat-node fly` wizard) run the tree copy.
|
|
17
|
+
if command -v bostrat-node >/dev/null 2>&1; then
|
|
18
|
+
exec bostrat-node run
|
|
19
|
+
else
|
|
20
|
+
exec node /app/agent/bin/bostrat-node.js run
|
|
21
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bostrat-node",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "Bostrat node runtime
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Bostrat node — the box runtime that dials out to your Bostrat coordination plane. https://bostrat.ai",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"bostrat-node": "bin/bostrat-node.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"express": "4.22.2",
|
|
12
|
+
"node-pty": "1.1.0",
|
|
13
|
+
"playwright-core": "1.61.1",
|
|
14
|
+
"ws": "8.21.0"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=22.5.0"
|
|
18
|
+
},
|
|
19
|
+
"allowScripts": {
|
|
20
|
+
"node-pty@1.1.0": true
|
|
21
|
+
}
|
|
8
22
|
}
|
package/cli.js
DELETED