@superclawd-ai/fda 0.1.3 → 0.1.4
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 +1 -0
- package/dist/assets/{index-sm_zmMY2.js → index--TG9WuVU.js} +1 -1
- package/dist/index.html +1 -1
- package/dist-server/cli.mjs +105 -105
- package/dist-server/index.mjs +83 -83
- package/package.json +1 -1
- package/scripts/install.sh +13 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superclawd-ai/fda",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SuperClawd FDA — a forward deployed agent for your team: a Slack-driven AI developer that runs on its own machine with your SuperClawd workspace.",
|
|
6
6
|
"author": "SuperClawd <support@superclawd.com>",
|
package/scripts/install.sh
CHANGED
|
@@ -72,6 +72,7 @@ npm_g() {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
main() {
|
|
75
|
+
TS_SERVE_URL=""
|
|
75
76
|
local WITH_BROWSER=0 WITH_BREW=0 NODE_VIA="" TAILSCALE=1 SERVICE=1 FROM_DIR="" GIT_NAME="" GIT_EMAIL=""
|
|
76
77
|
local SUPERCLAWD_VERSION="${SUPERCLAWD_VERSION:-latest}" FDA_VERSION="${FDA_VERSION:-latest}"
|
|
77
78
|
|
|
@@ -97,9 +98,9 @@ main() {
|
|
|
97
98
|
[ "${ID:-}" = "ubuntu" ] || warn "Tested on Ubuntu 24.04+; continuing on ${PRETTY_NAME:-an unknown system}."
|
|
98
99
|
sudo -v || die "This needs sudo for system packages."
|
|
99
100
|
|
|
100
|
-
step "System packages (git, curl, jq, bubblewrap)"
|
|
101
|
+
step "System packages (git, curl, jq, bubblewrap, SSH server)"
|
|
101
102
|
sudo apt-get update -qq
|
|
102
|
-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq git curl ca-certificates jq gnupg bubblewrap >/dev/null
|
|
103
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq git curl ca-certificates jq gnupg bubblewrap openssh-server >/dev/null
|
|
103
104
|
ok "installed"
|
|
104
105
|
|
|
105
106
|
if [ "$WITH_BREW" = 1 ]; then
|
|
@@ -215,10 +216,14 @@ main() {
|
|
|
215
216
|
superclawd fda service install --yes >/dev/null
|
|
216
217
|
ok "superclawd-fda installed and enabled (starts on boot)"
|
|
217
218
|
if [ "$TS_STATE" = up ]; then
|
|
218
|
-
|
|
219
|
+
# When Serve/HTTPS isn't enabled for the tailnet yet, `tailscale serve` prints an "enable it
|
|
220
|
+
# here" link and waits forever. Give it a few seconds; if it's waiting, show the link instead.
|
|
221
|
+
local out
|
|
222
|
+
if out="$(sudo timeout 15 tailscale serve --bg --https=443 http://127.0.0.1:63220 2>&1)"; then
|
|
219
223
|
ok "admin panel on the tailnet: https://$(tailscale status --json 2>/dev/null | jq -r '.Self.DNSName' | sed 's/\.$//')"
|
|
220
224
|
else
|
|
221
|
-
|
|
225
|
+
TS_SERVE_URL="$(printf '%s\n' "$out" | grep -o 'https://login.tailscale.com/[^ ]*' | head -1 || true)"
|
|
226
|
+
warn "admin panel not on the tailnet yet (Tailscale Serve/HTTPS is off for this tailnet; listed at the end)"
|
|
222
227
|
fi
|
|
223
228
|
fi
|
|
224
229
|
else
|
|
@@ -236,6 +241,10 @@ main() {
|
|
|
236
241
|
say " $n. Open a new shell (or: source ~/.bashrc) so nvm's node is on PATH"; n=$((n + 1))
|
|
237
242
|
fi
|
|
238
243
|
if [ "$TS_STATE" = down ]; then say " $n. sudo tailscale up # join your tailnet"; n=$((n + 1)); fi
|
|
244
|
+
if [ -n "${TS_SERVE_URL:-}" ]; then
|
|
245
|
+
say " $n. Enable Tailscale Serve for the admin panel: $TS_SERVE_URL"
|
|
246
|
+
say " then: sudo tailscale serve --bg --https=443 http://127.0.0.1:63220"; n=$((n + 1))
|
|
247
|
+
fi
|
|
239
248
|
if [ -z "$(git config --global user.email || true)" ]; then
|
|
240
249
|
say " $n. git config --global user.name \"…\" && git config --global user.email \"…\""; n=$((n + 1))
|
|
241
250
|
fi
|