/**
 * Base platform client — reads context from the agent container environment.
 */

export interface TenantContext {
  tenantId: string;
  ipcDir: string;
  workspaceDir: string;
}

export function getContext(): TenantContext {
  const tenantId = process.env.TENANT_ID;
  if (!tenantId) throw new Error('TENANT_ID is not set — are you running inside a tenant container?');
  return {
    tenantId,
    ipcDir: '/workspace/ipc',
    workspaceDir: '/workspace/group',
  };
}
