MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / scopedTo

Function scopedTo

packages/core/sdk/src/subject-registry.test.ts:31–35  ·  view source on GitHub ↗
(db: SqliteTestFumaDb, tenant: string)

Source from the content-addressed store, hash-verified

29// `last_seen_at` is a bigint column stored as a SQLite blob, so a raw SQL read
30// would hand back an unusable buffer — the ORM owns the round-trip.
31const scopedTo = (db: SqliteTestFumaDb, tenant: string) =>
32 withQueryContext(db.db, {
33 tenant,
34 subject: null,
35 } satisfies ExecutorOwnerPolicyContext);
36
37const storedSubjects = (
38 db: SqliteTestFumaDb,

Callers 2

storedSubjectsFunction · 0.85

Calls 1

withQueryContextFunction · 0.90

Tested by

no test coverage detected