Let the CEO hand out connector toolkits agent by agent
Connections belong to the company - one Composio connected account per toolkit, mirrored locally in connector_accounts - and access belongs to individuals: a new agent_connector_grants table records which agent may use which toolkit. Agent runs now load composio tools from the intersection of active connections and that agent's grants, and tool execution re-checks the grant server-side so an ungranted agent cannot call a connector tool it heard about. Any agent can list_connectors to see what the company has connected and who holds access; grant_connector/revoke_connector are CEO-only. The Composio client speaks the v3 contract (user_id, connected_account_id, toolkit catalog with cursor paging, managed auth config creation, connect-link initiation). Covered by four grants contract tests.
This commit is contained in:
1 parent
4775b23d94
commit
66aae376c0
10 files changed
+465
-66
No files matched your search
@@ -24,7 +24,7 @@ describe("domain services", () => {
|
||||
const connection = createConnection();
|
||||
|
||||
const rows = connection.db.prepare("select version from schema_migrations order by version asc").all() as Array<{ version: number }>;
|
||||
expect(rows.map((row) => row.version)).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]);
|
||||
expect(rows.map((row) => row.version)).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45]);
|
||||
connection.close();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user