Expand description
Where supercode-teams lives on this box, and the service unit that keeps
its machine daemon up (docs/plans/teams-server.md §11).
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 checkout it was built from, then the globally installed@volter/supercode-teamspackage (npm root -g). - what a service unit for its node would say —
service_unitrenders the launchd plist / systemd unit / Windows Scheduled Task that runsnode <entry> machine start, written under<home>/service/;install_serviceanduninstall_servicedrivelaunchctl/systemctl --user/schtasksover it.
Everything else about teams — its host key, log, contexts, enrollments — 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 daemon.
- TEAMS_
ENTRY - The teams CLI entry inside the
sdk/teamspackage. - TEAMS_
PACKAGE - The npm name the
sdk/teamspackage is published under.
Functions§
- connector_
service_ binary - The binary an installed connector runs. On Windows a running
.execannot be replaced, so a connector that ran the npm package’s own binary madenpm install -gfail with EBUSY for as long as it ran: there the service runs a copy kept per version under the teams service directory, and installing again after an upgrade moves it to the new copy. Copies of other versions that no process holds any more are removed. Everywhere else the binary itself is replaceable in place. - connector_
service_ name - Stable, context-scoped label for one workspace connector service.
- connector_
service_ status - Read-only service-manager status for one context connector.
- connector_
service_ unit - Render the persistent foreground connector command for one saved context.
- install_
connector_ service - Install a rendered context connector. An identical installed unit is an idempotent success. A different unit in this home’s own service folder is this home’s connector with new parameters (a new build, PATH or folder), so it is replaced and restarted; a label the manager holds with no unit here belongs to another home and is refused.
- install_
service - Render the unit, hand it to the platform’s service manager, and start it.
- register_
message_ tools - Give every installed harness supercode’s messaging tools: register
<supercode> message mcpas a user-scope MCP server namedsupercodethrough each harness’s ownmcp add. An entry that runs another binary (an older install, a build that is gone) is replaced through the harness’s ownmcp remove: a session loads only a server that starts. A harness whose CLI is absent is left as it is. One line per harness says what happened. - service_
status - What the platform’s service manager says about the teams daemon unit.
- service_
unit - Render the per-platform service unit for this machine’s teams daemon.
- 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_
connector_ service - Stop and remove exactly one context connector service.
- uninstall_
service - Stop and unregister the unit, and remove the rendered file.
- write_
unit - Write a rendered unit under
<home>/service/.