Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

648 B
Raw Blame
/**
 * A Team sign-in that could not be made or used. Its own module, with nothing imported, so a file the core loads
 * (team/windowsTeam.ts) can refuse with it without loading the sign-in code in ./handoff.ts and the end-to-end
 * encryption under it (architecture.spec.ts, the core's closure).
 */
export class TeamSignInError extends Error {
  constructor(message: string, readonly code: 'NOT_SIGNED_IN' | 'TEAM_SESSION' | 'EXPIRED' | 'BACKEND' | 'NOT_TEAM' | 'UNSAFE_FILE' | 'NO_PROOF',
    /** The backend's HTTP status, when it answered with one. */
    readonly status?: number) {
    super(message)
    this.name = 'TeamSignInError'
  }
}