const LOBSTER_KEY_REQUIRED_MESSAGE = "请先绑定龙虾密钥";

export function buildWorkspaceEntryLobsterEnv(apiKey: string | undefined): Record<string, string> {
  const lobsterKey = apiKey?.trim();
  if (!lobsterKey) {
    throw new Error(LOBSTER_KEY_REQUIRED_MESSAGE);
  }

  return {
    QJCLAW_LOBSTER_KEY: lobsterKey,
    OPENCLAW_EMPLOYEE_API_KEY: lobsterKey
  };
}
