import { getActiveSession, resolveOrg, setActiveOrg, } from "./_lib/openclaw-auth.js";
import { printText } from "../../internal/output.js";
export async function memoryOrgCurrentCommand(options = {}) {
    const { session, key } = await getActiveSession(options.context);
    const org = await resolveOrg(undefined, session, options.context);
    printText(`org: ${org || "(none)"}`);
    printText(`server: ${key || "(none)"}`);
}
export async function memoryOrgSetCommand(orgSlug, options = {}) {
    await setActiveOrg(orgSlug, options.context);
    printText(`Default memory org: ${orgSlug}`);
}
//# sourceMappingURL=org.js.map