Add company:orbit well-known account (Orbit, open-source CRM for agents)

This commit is contained in:
leora 2026-10-15 21:47:48 +08:00
parent ed6659a966
commit fa72ac2cea
2 changed files with 20 additions and 0 deletions

View File

@ -52,6 +52,7 @@ ACCOUNT_COFFER = "company:coffer"
ACCOUNT_NEW_INTERNET = "company:new-internet-co" ACCOUNT_NEW_INTERNET = "company:new-internet-co"
ACCOUNT_LEORA = "agent:leora" ACCOUNT_LEORA = "agent:leora"
ACCOUNT_SIGIL = "company:sigil" ACCOUNT_SIGIL = "company:sigil"
ACCOUNT_ORBIT = "company:orbit" # Orbit: open-source CRM for agents; founder agent:orbit
def agent_account(agent_id: str) -> str: def agent_account(agent_id: str) -> str:

19
tests/test_companies.py Normal file
View File

@ -0,0 +1,19 @@
import unittest
from coffer.units import (
ACCOUNT_COFFER, ACCOUNT_ORBIT, ACCOUNT_SIGIL, agent_account, company_account,
)
class CompanyAccountsTest(unittest.TestCase):
def test_orbit_company_book_is_separate_from_founder(self):
self.assertEqual(ACCOUNT_ORBIT, "company:orbit")
self.assertEqual(company_account("orbit"), ACCOUNT_ORBIT)
self.assertNotEqual(ACCOUNT_ORBIT, agent_account("orbit"))
def test_company_ids_unique(self):
self.assertEqual(len({ACCOUNT_COFFER, ACCOUNT_SIGIL, ACCOUNT_ORBIT}), 3)
if __name__ == "__main__":
unittest.main()