Expand description
Where supercode-teams lives on this box, and the service unit that keeps
its node up (docs/architecture/teams.md).
supercode does not implement teams; the sdk/teams package does. This
module holds the two facts the Rust CLI needs about it:
- where its Node entry is —
teams_entry, resolved exactly the waycrate::orchestrator::daemon_entryresolves the orchestrator’s:SUPERCODE_TEAMS_ENTRYfirst, then the checkout the running binary sits in, then the current directory, then the globally installed@volter-ai-dev/supercode-teamspackage (npm root -g). - what a service unit for its node would say —
service_unitrenders the launchd plist / systemd unit that runsnode <entry> node start --listen 127.0.0.1:0, written under<home>/service/;install_serviceanduninstall_servicedrivelaunchctl/systemctl --userover it.
Everything else about teams — its keys, grants, log, machines — is the Node package’s own state, written by its own CLI. There is no second writer of that home in this binary.
Enums§
- Teams
Error - Why a teams verb could not do its work.
Constants§
- SERVICE_
DIR - Directory the rendered service unit is written into, relative to the home.
- SERVICE_
NAME - launchd label / systemd unit name for this Machine’s teams node.
- TEAMS_
ENTRY - The teams CLI entry inside the
sdk/teamspackage. - TEAMS_
PACKAGE - The npm name the
sdk/teamspackage is published under.
Functions§
- install_
service - Render the unit, hand it to the platform’s service manager, and start it.
- service_
status - What the platform’s service manager says about the teams node unit.
- service_
unit - Render the per-platform service unit for this Machine’s teams node.
- teams_
entry - Locate the Node teams entry (
sdk/teams/bin/teams.mjs). - teams_
home - The teams home:
SUPERCODE_TEAMS_HOME, else<SUPERCODE_HOME>/teams. - uninstall_
service - Stop and unregister the unit, and remove the rendered file.
- write_
unit - Write a rendered unit under
<home>/service/.