mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 01:14:47 +00:00
feat(hub): "Use c0mpute network" session: chat for members, TUI for operators
New hub Sessions entry that opens the c0mpute network (free-tier AI chat on open models) inside the member's pod, never on the BBS host: - pods/Containerfile installs the c0mpute client stack (c0mpute binary, pinned bun, signed c0mpute-tui) via the official installer with --no-start and no peers, under /opt/c0mpute, linked onto PATH. unzip added (bun ships as a zip; without it the installer silently skipped the TUI). The build now fails if the TUI or bun is missing, and drops the installer's build-time config so no node identity ships in the image. - pods/agentbbs-c0mpute signs the member in to their own c0mpute account on first use (device code; free account = free tier), then runs `c0mpute chat`, or `c0mpute tui` for operators. The key persists in /home/dev. - Gated like the pod Shell: members only, verified email, pods available. Tested: slim image with the same layer on ubuntu:26.04 builds; as uid 1000 with an empty home the launcher shows the c0mpute.com/cli/approve device code, and `c0mpute tui` renders (Chat/Jobs/Node/Network/Settings/Fleet). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
52f8118ee5
commit
628897609c
4 changed files with 104 additions and 1 deletions
|
|
@ -613,6 +613,24 @@ func (a *app) sessionApps(s ssh.Session, su store.User, guest bool) []hub.Sessio
|
|||
Cmd: sessionExec{run: func() error { return a.pods.Attach(s, su.Name) }},
|
||||
})
|
||||
|
||||
// c0mpute network — free-tier AI chat on open models (c0mpute.com). Runs
|
||||
// in the member's pod (never on the host) under their own c0mpute account:
|
||||
// the launcher signs them in on first use and the key persists in their
|
||||
// pod home. Operators get the full `c0mpute tui` (chat, jobs, network,
|
||||
// settings); members get `c0mpute chat`.
|
||||
c0mputeMode, c0mputeDesc := "chat", "free AI chat on open models (sign in once, free tier)"
|
||||
if !guest && auth.IsAdmin(su.Name) {
|
||||
c0mputeMode, c0mputeDesc = "tui", "c0mpute TUI: chat, jobs, network, settings (operator)"
|
||||
}
|
||||
apps = append(apps, hub.SessionApp{
|
||||
Title: "Use c0mpute network",
|
||||
Description: c0mputeDesc,
|
||||
Locked: podLock,
|
||||
Cmd: sessionExec{run: func() error {
|
||||
return a.pods.Exec(s, su.Name, []string{"/usr/local/bin/agentbbs-c0mpute", c0mputeMode})
|
||||
}},
|
||||
})
|
||||
|
||||
// IRC is members-only but accessed with an external client (or web) at
|
||||
// irc.profullstack.com — not an in-BBS route — so it's not a hub menu item.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue