mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-02 02:11:20 +00:00
Co-authored-by: Prasanna <106952318+Prasanna721@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: ved015 <vedant.04.mahajan@gmail.com> Co-authored-by: ved015 <ved015@users.noreply.github.com> Co-authored-by: Ishaan Gupta <ishaankone@gmail.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
14 lines
441 B
TypeScript
14 lines
441 B
TypeScript
import type { ActorContext } from "./types"
|
|
|
|
export function spaceStateName(
|
|
actor: Pick<ActorContext, "organizationId" | "userId">,
|
|
): string {
|
|
return `space:${JSON.stringify([actor.organizationId, actor.userId])}`
|
|
}
|
|
|
|
export async function resolveContainerTag(
|
|
explicit: string | undefined,
|
|
getActiveContainerTag: () => Promise<string | undefined>,
|
|
): Promise<string | undefined> {
|
|
return explicit ?? (await getActiveContainerTag())
|
|
}
|